export function download(data){
    const link = document.createElement('a');
    let blob = new Blob([data.msg],{type:"application/vnd.ms-excel"});
    link.style.display = 'none';
    link.href = URL.createObjectURL(blob);
    link.download = data.fileName;
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
}